package robocup.component.speechacts.coachlanguage;

public class ActivationElement {

  private boolean ruleOn;

  private IdList  ruleList = null;

  public boolean isRuleOn() {

    return this.ruleOn;
  }

  public void setRuleOn(final boolean ruleOn) {

    this.ruleOn = ruleOn;
  }

  public IdList getRuleList() {

    return this.ruleList;
  }

  public void setRuleList(final IdList idList) {

    this.ruleList = idList;
  }

  @Override
  public String toString() {

    if (this.ruleOn) {
      return "(on" + this.ruleList.toString() + ")";
    }
    else {
      return "(off" + this.ruleList.toString() + ")";
    }
  }

}
